<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fn(a, b, ...c) {} // fn = {}
      const user = {
        sayBye: function () {}, //user.sayBye={}
      };
      const arr = [function () {}]; //arr[0] = {}

      fn.title = "hello";
      fn.say = function () {
        console.log(this.title);
      };
      user.sayBye.title = "hello";
      user.sayBye.say = function () {
        console.log(this.title);
      };
      arr[0].title = "hello";
      arr[0].say = function () {
        console.log(this.title);
      };
      console.dir(fn);
      fn.say();
      console.dir(user.sayBye);
      user.sayBye.say();
      console.dir(arr[0]);
      arr[0].say();
    </script>
  </body>
</html>
